/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package desarrollosoft.ghce.entidades;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author ariel
 */
@Entity
@DiscriminatorValue("ESTUDIO")
public class Estudio extends Elemento {

    @ManyToOne
    @JoinColumn(name = "profesionalCompleto_id", nullable = true)
    private Profesional profesionalQueLoCompleto;
    
    /*@Column(name = "terminado", nullable = false)
    private Boolean terminado;*/
    
    @ManyToOne
    @JoinColumn(name = "plantilla_id", nullable = false)
    private Plantilla plantilla;
    
    public Estudio() {
        super();
    }

    public Profesional getProfesionalQueLoCompleto() {
        return profesionalQueLoCompleto;
    }

    public void setProfesionalQueLoCompleto(Profesional profesionalQueLoCompleto) {
        this.profesionalQueLoCompleto = profesionalQueLoCompleto;
    }

    /*public Boolean isTerminado() {
        return terminado;
    }

    public void setTerminado(Boolean terminado) {
        this.terminado = terminado;
    }*/

    public Plantilla getPlantilla() {
        return plantilla;
    }

    public void setPlantilla(Plantilla plantilla) {
        this.plantilla = plantilla;
    }

    @Override
    public String getTipificacion() {
        return "Estudio";
    }

    @Override
    public String getDescripcion() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
}
